using JYJ.AiYard.MultiTenancy.Payments;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace JYJ.AiYard.EntityMapper.SubscriptionPayments
{
    public class SubscriptionPaymentCfg : IEntityTypeConfiguration<SubscriptionPayment>
    {
        public void Configure(EntityTypeBuilder<SubscriptionPayment> builder)
        {
            builder.HasIndex(e => new { e.Status, e.CreationTime });
            builder.HasIndex(e => new { e.PaymentId, e.Gateway });
        }
    }
}
